Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nextgen): SmartEat #1766

Merged
merged 68 commits into from
Mar 9, 2024
Merged

Conversation

Ell1ott
Copy link
Contributor

@Ell1ott Ell1ott commented Jan 4, 2024

Features:

Silent offhand

Essentially adds a extra offhand for food, so you can use your main offhand for things like totem of undying. As well works on 1.8 servers that don't support a offhand

AutoEat

Automatically eats when the hunger gets too low

todo:

  • Silent offhand
  • Update Comments in module
  • Add auto eat feature

@Ell1ott
Copy link
Contributor Author

Ell1ott commented Feb 5, 2024

Any updates on this, what is missing?

I was waiting for a reply from @superblaubeere27. Other than merging, everything should be ready.

@Ell1ott
Copy link
Contributor Author

Ell1ott commented Feb 7, 2024

One thing that's still not perfect is that Sometimes it won't trigger silentoffhand, like when right clicking with an empty hand.

@superblaubeere27
Copy link
Contributor

@EclipsesDev
Copy link
Contributor

any progress/update here?

@Ell1ott
Copy link
Contributor Author

Ell1ott commented Feb 22, 2024

My apologies for the late response. While it's not flawless yet, I haven't encountered any significant issues with it. Therefore, I'm opening it for merge now. I may improve it at a later time, but i sadly just don't currently have the time for it.

@Ell1ott Ell1ott marked this pull request as ready for review February 22, 2024 17:30
@EclipsesDev
Copy link
Contributor

@1zun4

@1zun4
Copy link
Member

1zun4 commented Feb 25, 2024

Yes, sorry! I will check it out soon.

@Ell1ott
Copy link
Contributor Author

Ell1ott commented Feb 25, 2024

Yes, sorry! I will check it out soon.

Thanks!

@superblaubeere27 superblaubeere27 self-requested a review February 26, 2024 20:28
*/

object ModuleSmartEat : Module("SmartEat", Category.PLAYER) {
private val HOTBAR_OFFHAND_LEFT_TEXTURE = Identifier("hud/hotbar_offhand_left")

This comment was marked as resolved.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs some attention from the Frontend :o @SenkJu

Comment on lines 109 to 116
val x = i - 91 - 26 - offset
val y = scaledHeight - 16 - 3
dc.drawItemInSlot(mc.textRenderer, currentFood.second, x, y)
dc.drawItem(currentFood.second, x, y)
dc.drawGuiTexture(
HOTBAR_OFFHAND_LEFT_TEXTURE, i - 91 - 29 - offset,
scaledHeight - 23, 29, 24
)

This comment was marked as resolved.

@1zun4
Copy link
Member

1zun4 commented Mar 2, 2024

@superblaubeere27 Merge this when you think it is ready.

# Conflicts:
#	src/main/kotlin/net/ccbluex/liquidbounce/features/module/ModuleManager.kt
@superblaubeere27 superblaubeere27 merged commit 3e3ff43 into CCBlueX:nextgen Mar 9, 2024
1 check passed
@superblaubeere27
Copy link
Contributor

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants